﻿using Reticulum.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Security.Policy;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Reticulum.工具类
{
    class Style
    {
        public static void SwitchFunction(int Switchindex)
        {
            switch (Switchindex)
            {
                case 0:
                    Loads.client.Directory1.BackgroundImageLayout = ImageLayout.Stretch;
                    Loads.client.Directory1.BackgroundImage = Resources.Clikecolor2;
                    Loads.client.Directory2.BackgroundImage = null;
                    Loads.client.Directory3.BackgroundImage = null;

                    Loads.client.Navigationbar2.Visible = true;
                    Loads.client.listView1.Visible = true;
                    Loads.client.FileActionState.Visible = false;
                    Loads.client.QueueView.Visible = false;
                    Loads.client.FriendsPanel.Visible = false;
                    Loads.client.CommList.Visible = false;
                    break;
                case 1:
                    Loads.client.Directory2.BackgroundImageLayout = ImageLayout.Stretch;
                    Loads.client.Directory1.BackgroundImage = null;
                    Loads.client.Directory2.BackgroundImage = Resources.Clikecolor2;
                    Loads.client.Directory3.BackgroundImage = null;

                    LoadListView.CountQueue();
                    Loads.client.FileActionState.Visible = true;
                    Loads.client.QueueView.Visible = true;
                    Loads.client.Navigationbar2.Visible = false;
                    Loads.client.listView1.Visible = false;
                    Loads.client.PrivacyLogin.Visible = false;
                    Loads.client.PrivacyPwd.Visible = false;
                    Loads.client.FriendsPanel.Visible = false;
                    Loads.client.CommList.Visible = false;
                    break;
                case 2:
                    Loads.client.Directory3.BackgroundImageLayout = ImageLayout.Stretch;
                    Loads.client.Directory1.BackgroundImage = null;
                    Loads.client.Directory2.BackgroundImage = null;
                    Loads.client.Directory3.BackgroundImage = Resources.Clikecolor2;

                    Loads.client.FriendsPanel.Visible = true;
                    Loads.client.CommList.Visible = true;
                    Loads.client.FileActionState.Visible = false;
                    Loads.client.QueueView.Visible = false;
                    Loads.client.Navigationbar2.Visible = false;
                    Loads.client.listView1.Visible = false;
                    Loads.client.PrivacyLogin.Visible = false;
                    Loads.client.PrivacyPwd.Visible = false;
                    
                    break;
                default:
                    MessageBox.Show("切换功能错误！");
                    break;
            }
        }
    }
}
